package com.sz.jinzheng.service.impl;

import com.sz.jinzheng.mapper.RoleUserMapper;
import com.sz.jinzheng.model.RoleUsers;
import com.sz.jinzheng.service.RoleUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class RoleUserServiceImpl implements RoleUserService {
    @Autowired
    private RoleUserMapper roleUserMapper;
    @Override
    public int addRoleUsers(RoleUsers roleUsers) {
        return roleUserMapper.addRoleUsers(roleUsers);
    }

    @Override
    public RoleUsers getRoleUsers(RoleUsers roleUsers) {
        return roleUserMapper.getRoleUsers(roleUsers);
    }

    @Override
    public int deleteRoleUsers(Integer id) {
        return roleUserMapper.deleteRoleUsers(id);
    }
}
